package com.forekonw.demo9;

import org.omg.CORBA.PERSIST_STORE;

/**
 * 子类负责实现抽象类当中所有的抽象方法
 */
public class PersonSub extends Person{

    @Override
    public void eat() {
        System.out.println("小猴要去吃饭了...");
    }

    @Override
    public void study() {
        System.out.println("study...");
    }

    @Override
    public void sleep() {
        System.out.println("sleep...");
    }

    @Override
    public void game() {
        System.out.println("game...");
    }

    public static void main(String[] args) {
        Person person = new PersonSub();
        person.eat();
    }
}
